package com.app.factories.impl;

import com.app.factories.BetFactory;
import com.app.game.bet.Bet;
import com.app.game.bet.simple.BetHalf;
import com.app.game.bet.simple.BetOddEven;
import com.app.game.bet.simple.BetRedBlack;
import com.app.game.other.Credit;

public class OutsideBetFactory implements BetFactory{

	public static final int RED = 0, BLACK = 1,EVEN = 2, ODD = 3, FIRSTHALF = 4, SECONDHALF = 5;
	
	
	@Override
	public Bet createBet(int type) {
		Bet bet = null;
		switch(type){
		case RED: bet = new BetRedBlack(BetRedBlack.Type.RED);break;
		case BLACK: bet = new BetRedBlack(BetRedBlack.Type.BLACK);break;
		case EVEN: bet = new BetOddEven(BetOddEven.Type.EVEN);break;
		case ODD: bet = new BetOddEven(BetOddEven.Type.ODD);break;
		case FIRSTHALF: bet = new BetHalf(BetHalf.Type.FIRST_HALF);break;
		case SECONDHALF: bet = new BetHalf(BetHalf.Type.SECOND_HALF);break;
		}
		
		return bet;
	}

	
}
